<!--
  ~ Copyright (C) 2011 Brockmann Consult GmbH (info@brockmann-consult.de)
  ~
  ~ This program is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU General Public License as published by the Free
  ~ Software Foundation; either version 3 of the License, or (at your option)
  ~ any later version.
  ~ This program is distributed in the hope that it will be useful, but WITHOUT
  ~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  ~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  ~ more details.
  ~
  ~ You should have received a copy of the GNU General Public License along
  ~ with this program; if not, see http://www.gnu.org/licenses/
  -->

<html>
<head>
    <title>SNAP Data Processors - OLCI O2A Harmonisation Command Line Description</title>
    <link rel="stylesheet" href="../style.css">
</head>

<body>

<table class="header">
    <tr class="header">
        <td class="header">&nbsp;
            OLCI O2A Harmonisation - Command Line Description
        </td>
        <td class="header" align="right"><a href="nbdocs://org.esa.snap.snap.help/org/esa/snap/snap/help/docs/general/overview/SnapOverview.html"><img src="../images/snap_header.jpg"
                                                                                     border=0></a>
        </td>
    </tr>
</table>

<h3>Command Line Description</h3>

<p class="i1">
Since the OLCI O2A Harmonisation processor makes use of the SNAP graph processing framework, it can be
used also as a command line tool. The graph processing is invoked  by the command
</p>
<ul class="i1">
    <li>
        ${S3TBX-INSTALL-DIR}/bin/gpt
    </li>
</ul>

<p class="i1">
To obtain general help on the graph processing, use the command
</p>
<ul class="i1">
    <li>
        ${S3TBX-INSTALL-DIR}/bin/gpt -h
    </li>
</ul>

<p class="i1">
Specific help on the OLCI O2A Harmonisation processor can be obtained with
</p>
<ul class="i1">
    <li>
        ${S3TBX-INSTALL-DIR}/bin/gpt -h OlciO2aHarmonisation
    </li>
</ul>

<p class="i1">
In this case, information on the usage and a list of all available parameters are given.
</p>

<p class="i1">
The OLCI O2A Harmonisation processor parameters can also be specified via a graph xml file.
A possible graph xml file could look like the following. (Note that in principle it is not necessary
to explicitly set parameters if default values shall be used).
</p>
<pre>

    &lt;graph id="OlciHarmonisationTest"&gt;
        &lt;version&gt;1.0&lt;/version&gt;
        &lt;node id="slope"&gt;
            &lt;operator&gt;OlciHarmonisation&lt;/operator&gt;
            &lt;sources&gt;
                &lt;sourceProduct&gt;${sourceProduct}&lt;/sourceProduct&gt;
            &lt;/sources&gt;
            &lt;parameters&gt;
                &lt;demAltitudeBandName&gtmyAltitude&lt;/demAltitudeBandName&gt;
            &lt;/parameters&gt;
        &lt;/node&gt;
    &lt;/graph&gt;

</pre>

<p class="i1">
This graph can be invoked by the following call on the command line:
</p>
<pre>
    gpt &lt;graph-file.xml&gt; -SsourceProduct=&lt;path-to-source-file&gt;
</pre>

</body>
</html>